package cn.com.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.com.mvc.annotation.Controller;
import cn.com.mvc.annotation.RequestMapping;

@Controller("login")
public class LoginController {
	
	@RequestMapping("login") 
	public String login(HttpServletRequest request, HttpServletResponse response){
        System.out.println("login test");
		request.setAttribute("mess", "welcome");
		return "hello.jsp";
	}
	@RequestMapping("add") 
	public String add(HttpServletRequest request, HttpServletResponse response){
        System.out.println("add test");
		request.setAttribute("mess", "welcome");
		return "hello.jsp";
	}
}
